home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / Photoshop 4.0 SDK r2 Mac / Examples / Common / Rez-files.r / DialogUtilities.r next >
Encoding:
Text File  |  1996-09-05  |  1.7 KB  |  87 lines  |  [TEXT/CWIE]

  1. /*
  2.     File: DialogUtilities.r
  3.  
  4.     Copyright (c) 1990-1, Thomas Knoll.
  5.     Copyright (c) 1992-6, Adobe Systems Incorporated.
  6.     All rights reserved.
  7.  
  8.     Rez source file for Dialog Utilities.
  9. */
  10.  
  11. /********************************************************************************/
  12.  
  13. /********************************************************************************/
  14.  
  15. /* About dialog box */
  16.  
  17. resource 'DLOG' (AboutID, "About", purgeable)
  18. {
  19.     {20, 0, 214, 370},
  20.     movableDBoxProc,
  21.     visible,
  22.     noGoAway,
  23.     0x0,
  24.     ResourceID,
  25.     "About " plugInName "..."
  26. };
  27.  
  28. resource 'DITL' (AboutID, "About", purgeable)
  29. {
  30.     {
  31.         {-80, 0, -60, 60},         Button { enabled, "Hidden" },
  32.         {0, 0, 194, 370},        UserItem { enabled },
  33.         {5, 5, 190, 340},        StaticText { disabled, "^0\n^1\n^2\n" }
  34.     }
  35. };
  36.  
  37. /********************************************************************************/
  38.  
  39. /* Generic version information. */
  40.  
  41. resource 'vers' (1, purgeable)
  42.     {
  43.     4, 0, final, 0, verUs,
  44.     VersionString,
  45.     VersionString " ⌐1990-6 Adobe Systems, Inc."
  46.     };
  47.  
  48. /********************************************************************************/
  49.  
  50. /* Alerts for dialog warnings */
  51.  
  52. resource 'DITL' (AlertID, purgeable)
  53. {
  54.     {    /* array DITLarray: 2 elements */
  55.         /* [1] */
  56.         {87, 230, 107, 298},
  57.         Button {
  58.             enabled,
  59.             "OK"
  60.         },
  61.         /* [2] */
  62.         {12, 60, 76, 300},
  63.         StaticText {
  64.             disabled,
  65.             "^0"
  66.         }
  67.     }
  68. };
  69.  
  70. resource 'ALRT' (AlertID, "Alert", purgeable)
  71. {
  72.     {0, 0, 120, 310},
  73.     AlertID,
  74.     {    /* array: 4 elements */
  75.         /* [1] */
  76.         OK, visible, sound1,
  77.         /* [2] */
  78.         OK, visible, sound1,
  79.         /* [3] */
  80.         OK, visible, sound1,
  81.         /* [4] */
  82.         OK, visible, sound1
  83.     }
  84. };
  85.  
  86. /********************************************************************************/
  87.